package com.item.service;

import com.item.dao.NewsImgMapper;
import com.item.dao.model.NewsImg;
import com.item.dao.model.NewsImgExample;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class NewsImgService {
    @Autowired
    private NewsImgMapper newsImgMapper;

    private static final Logger logger = Logger.getLogger(NewsImgService.class);

    public int countByExample(NewsImgExample example) {
        return this.newsImgMapper.countByExample(example);
    }

    public NewsImg selectByPrimaryKey(String id) {
        return this.newsImgMapper.selectByPrimaryKey(id);
    }

    public List<NewsImg> selectByExample(NewsImgExample example) {
        return this.newsImgMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(String id) {
        return this.newsImgMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(NewsImg record) {
        return this.newsImgMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(NewsImg record) {
        return this.newsImgMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(NewsImgExample example) {
        return this.newsImgMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(NewsImg record, NewsImgExample example) {
        return this.newsImgMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(NewsImg record, NewsImgExample example) {
        return this.newsImgMapper.updateByExample(record, example);
    }

    public int insert(NewsImg record) {
        return this.newsImgMapper.insert(record);
    }

    public int insertSelective(NewsImg record) {
        return this.newsImgMapper.insertSelective(record);
    }
}